#ifndef INWIDGET_H
#define INWIDGET_H


#include <QWidget>
#include <QPushButton>
#include <QLabel>
#include <QLineEdit>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QMessageBox>
#include <QListWidget>
#include <QListWidgetItem>
#include <QVector>

#include "model/basemodel.h"
#include "control/mycontrol.h"

class InWidget : public QWidget
{
    Q_OBJECT
public:
    explicit InWidget(QWidget *parent = nullptr);
    void init_Control();
    void init_Widget();
    void init_Connect();//初始化连接信号和槽
    void doStockIn();

private:
    QPushButton *returnBtn;
    QPushButton *ensureBtn;
    QLabel *user_idLab;
    QLabel *tings_nameLab;
    QLabel *tings_jurLab;
    QLabel *tings_moneyLab;
    QLabel *tings_countLab;
    QLineEdit *user_idEdit;
    QLineEdit *tings_nameEdit;
    QLineEdit *tings_jurEdit;
    QLineEdit *tings_moneyEdit;
    QLineEdit *tings_countEdit;

    QVBoxLayout *LabLay;
    QVBoxLayout *EditLay;
    QHBoxLayout *L_eLay;
    QVBoxLayout *Lay;
    QHBoxLayout *BtnLay;

    BaseModel *model;

    MyControl *control;

    StockData addstock;

signals:
    void returnManager();

public slots:
     void on_retutrnBtn_cliked();
     void on_ensureBtn_cliked();
};

#endif // INWIDGET_H
